
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Role;
import cn.edu.scau.cmi.hombio.domain.RoleAuthority;
import cn.edu.scau.cmi.hombio.domain.RoleEmployee;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Role entities
 * 
 */
public interface RoleService {

	/**
	* Delete an existing Role entity
	* 
	 */
	public void deleteRole(Role role);

	/**
	* Return all Role entity
	* 
	 */
	public List<Role> findAllRoles(Integer startResult, Integer maxRows);

	/**
	* Return a count of all Role entity
	* 
	 */
	public Integer countRoles();

	/**
	 */
	public Role findRoleByPrimaryKey(Integer id);

	/**
	* Delete an existing RoleAuthority entity
	* 
	 */
	public Role deleteRoleRoleAuthorities(Integer role_id, Integer related_roleauthorities_id);

	/**
	* Save an existing RoleAuthority entity
	* 
	 */
	public Role saveRoleRoleAuthorities(Integer id_1, RoleAuthority related_roleauthorities);

	/**
	* Delete an existing RoleEmployee entity
	* 
	 */
	public Role deleteRoleRoleEmployees(Integer role_id_1, Integer related_roleemployees_id);

	/**
	* Save an existing RoleEmployee entity
	* 
	 */
	public Role saveRoleRoleEmployees(Integer id_2, RoleEmployee related_roleemployees);

	/**
	* Load an existing Role entity
	* 
	 */
	public Set<Role> loadRoles();

	/**
	* Save an existing Role entity
	* 
	 */
	public void saveRole(Role role_1);
}